home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-07-28 | 1.6 KB | 78 lines | [TEXT/R*ch] |
- /*
- File: 2020HalfGatewayMisc.cp
-
- Copyright: © 1991-1994 by Apple Computer, Inc.
- All rights reserved.
-
- Part of the AOCE Sample SMSAM Package. Consult the license
- which came with this software for your specific legal rights.
-
- */
-
-
-
- #ifndef __2020HALFGATEWAYMISC__
- #include "2020HalfGateway.h"
- #endif
-
- #ifndef __UTILITIES__
- #include "Utilities.h"
- #endif
-
- /***********************************|****************************************/
-
- Boolean ValidRecipientType (RecipientTypeSet recipient)
- {
- switch (recipient)
- {
- case fromRecipient:
- case toRecipient:
- case ccRecipient:
- return true;
- case bccRecipient:
- default:
- return false;
- }
-
- return false;
- }
-
- /***********************************|****************************************/
-
- short ConvertRecipientTypeSettoAMAttribute (RecipientTypeSet recipient)
- {
- switch (recipient)
- {
- case fromRecipient:
- return kMailFromBit;
- case toRecipient:
- return kMailToBit;
- case ccRecipient:
- return kMailCcBit;
- case bccRecipient:
- return kMailBccBit;
- }
- return -1;
- }
-
- /***********************************|****************************************/
-
- void MakeMailAttributeBitmap (MailAttributeBitmap& attribute, unsigned long valueToSet)
- {
- CLEARBLOCK ( attribute )
- * (long *) &attribute = valueToSet;
- }
-
- /***********************************|****************************************/
-
- MailAttributeBitmap MakeMailAttributeBitmap ( unsigned long valueToSet )
- { MailAttributeBitmap attribute;
- CLEARBLOCK ( attribute )
- * (long *) &attribute = valueToSet;
-
- return attribute;
- }
-
- /***********************************|****************************************/
-
-